export default [
  {
    path: "/mall/manage",
    component: () => import("@/views/pointsMall/PointsMall.vue"),
    redirect: '/mall/manage/list',
    meta: {
      title: "商城列表",
      noChild: true,
      needLogin: true,
    },
  },
  // {
  //   path: '/mall/manage/list',
  //   component: () => import("@/views/pointsMall/MallList.vue"),
  //   meta: {
  //     title: '商城列表'
  //   }
  // },
  {
    path: "/mall/decorate/page",
    name: "decoratePage",
    meta: {
      title: "页面装修",
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/MallPageList.vue"),
  },
  {
    path: "/mall/product/list",
    name: "MallProductList",
    meta: {
      title: "商品列表",
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/GoodsList.vue"),
  },
  {
    path: "/mall/product/list/configureGoods",
    name: "mallProductListConfigure",
    meta: {
      title: "商品配置",
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/ConfigureGoods.vue"),
  },
  {
    path: "/mall/product/category",
    name: "MallProductCategory",
    meta: {
      title: '商品分类',
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/GoodsCate.vue"),
  },
  {
    path: "/mall/product/category/add_goods_cate",
    name: "mallProductCategoryadd",
    meta: {
      title: '添加商品分类',
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/AddGoodsCate.vue"),
  },
  {
    path: "/mall/order/list",
    name: "MallOrderList",
    meta: {
      title: '订单列表',
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/OrderList.vue"),
  },

  {
    path: "/mall/order/list/orderdetail",
    name: "mallOrderListDetail",
    meta: {
      title: '订单列表详情',
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/OrderDetail.vue"),
  },
  {
    path: "/mall/order/afterSalesList",
    name: "MallAfterSalesList",
    meta: {
      title: '售后订单',
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/AfterSalesServiceOrderList.vue"),
  },
  {
    path: "/mall/order/afterSalesList/detail",
    name: "mallAfterSalesDetail",
    meta: {
      title: '售后订单详情',
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/AfterSalesServiceOrderDetail.vue"),
  },
  {
    path: "/mall/order/abnormal",
    name: "MallOrderAbnormal",
    meta: {
      title: '异常订单',
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/AbnormalOrderList.vue"),
  },
  {
    path: "/mall/order/abnormal/detail",
    name: "mallOrderAbnormalDetail",
    meta: {
      title: '异常订单详情',
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/AbnormalOrderDetail.vue"),
  },
  {
    path: "/mall/order/auditList",
    name: "MallAuditOrderList",
    meta: {
      title: '审核订单',
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/AuditOrderList.vue"),
  },
  {
    path: "/mall/system/mallConfig",
    name: "MallSystemMallConfig",
    meta: {
      title: '商城配置',
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/MallSetting.vue"),
  },
  {
    path: "/mall/system/transConfig",
    name: "MallSystemTransConfig",
    meta: {
      title: '配送配置',
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/pointsMall/DeliverySetting.vue"),
  },
  {
    path: "/mall/dashboard",
    name: "mallDashboard",
    meta: {
      title: '商城看板',
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/dashboard/index.vue"),
  },
  {
    path: "/mall/couponManage/list",
    name: "CouponManage",
    meta: {
      title: "优惠券管理",
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/CouponManage.vue")
  },
  {
    path: "/mall/couponManage/create",
    name: "ConfigureCouponCreate",
    meta: {
      title: "优惠券新增",
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/ConfigureCoupon.vue")
  },
  {
    path: "/mall/couponManage/edit",
    name: "ConfigureCouponEdit",
    meta: {
      title: "优惠券编辑",
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/pointsMall/ConfigureCoupon.vue")
  },
];
